<?PHP

	# 

   function autenticar(){
   	header("WWW-Authenticate:Basic realm='Controle de Ligacoes'");
	header("HTTP/1.0 401 Unauthorized");
        print "Acesso Negado";
        exit();
   }

   if($_GET['acao'] == 'logout'){
   	autenticar();
   }else{
	header("location: index.php");
	exit();
   }



?>
